<template>
	<view>
		<u-button text="確定" @click="submit"></u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					"CustomField1": "",
					"CustomField2": "",
					"CustomField3": "",
					"CustomField4": "",
					"MerchantID": "3387792",
					"MerchantTradeNo": "OR1694569340465863",
					"PaymentDate": "2023\/09\/13 09:43:29",
					"PaymentType": "Credit_CreditCard",
					"PaymentTypeChargeFee": "5",
					"RtnCode": "1",
					"RtnMsg": "\u4ea4\u6613\u6210\u529f",
					"SimulatePaid": "0",
					"StoreID": "",
					"TradeAmt": "50",
					"TradeDate": "2023\/09\/13 09:42:21",
					"TradeNo": "2309130942218881",
					"CheckMacValue": "BB71DC9A964F92AEF420055F095D28D6C45019CE26C26F71663BB57C8879B937"
				}
			};
		},
		methods: {
			submit() {
				uni.request({
					url: 'http://34.80.81.71/pages/payment_successful/payment_successful',
					method: 'POST',
					header:{
						accept:'text/html',
						"content-type":'application/x-www-form-urlencoded'
					},
					data: {
						...this.form
					},
					success: (res) => {
						console.log(res,'res')
						// uni.navigateTo({
						// 	url:'/pages/payment_successful/payment_successful'
						// })
					},
					fail: (err) => {
						console.log(err,'err')
					}
				})
			}
		}
	}
</script>

<style lang="less">

</style>